if meson_build
    message('meson build drivers')
    drivers_install_dir = meson.project_build_root() / 'opt/bmc/drivers'
else
    message('bingo build drivers')
    drivers_install_dir = 'opt/bmc/drivers/'
endif
run_command('mkdir', '-p', drivers_install_dir, check: false)

boost_dep = dependency('boost', method: 'pkg-config', required: true)
boost_program_options_dep = dependency(
  'boost',
  modules: ['program_options'],
  method: 'pkg-config',
  required: true,
)

subdir('internal')
subdir('bus')
subdir('chip')
subdir('accessor')
subdir('scanner')
subdir('pcie_nic_card')
subdir('pcie_gpu_card')
subdir('debounce')